  Page({
    data: {
        flag: 0,
        currentTab: 0
    },
    switchNav: function(e) {
        var page = this;
        var id = e.target.id;
        if (this.data.currentTab == id) {
            return false;
        } else {
            page.setData({
                currentTab: id
            });
        }
        page.setData({
            flag: id
        });
    },
    catchTouchMove: function(res) {
        return false
    }
})